import {createRouter, createWebHistory} from 'vue-router';
import type {RouteRecordRaw} from 'vue-router';

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/dashboard'
    },
    {
        path: '/dashboard',
        name: 'dashboard',
        component: () => import('@/views/DashboardView.vue')
    },
    {
        path: '/data-collection',
        name: 'data-collection',
        component: () => import('@/views/DataCollectionView.vue')
    },
    {
        path: '/data-analysis',
        name: 'data-analysis',
        component: () => import('@/views/DataAnalysisView.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/LoginView.vue')
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
